Optimal. Leaf size=42 \[ \frac {\sin \left (a+b \log \left (c x^n\right )\right )}{b n}-\frac {\sin ^3\left (a+b \log \left (c x^n\right )\right )}{3 b n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 1, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {2633} \[ \frac {\sin \left (a+b \log \left (c x^n\right )\right )}{b n}-\frac {\sin ^3\left (a+b \log \left (c x^n\right )\right )}{3 b n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2633
Rubi steps
\begin {align*} \int \frac {\cos ^3\left (a+b \log \left (c x^n\right )\right )}{x} \, dx &=\frac {\operatorname {Subst}\left (\int \cos ^3(a+b x) \, dx,x,\log \left (c x^n\right )\right )}{n}\\ &=-\frac {\operatorname {Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin \left (a+b \log \left (c x^n\right )\right )\right )}{b n}\\ &=\frac {\sin \left (a+b \log \left (c x^n\right )\right )}{b n}-\frac {\sin ^3\left (a+b \log \left (c x^n\right )\right )}{3 b n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 42, normalized size = 1.00 \[ \frac {\sin \left (a+b \log \left (c x^n\right )\right )}{b n}-\frac {\sin ^3\left (a+b \log \left (c x^n\right )\right )}{3 b n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.62, size = 36, normalized size = 0.86 \[ \frac {{\left (\cos \left (b n \log \relax (x) + b \log \relax (c) + a\right )^{2} + 2\right )} \sin \left (b n \log \relax (x) + b \log \relax (c) + a\right )}{3 \, b n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cos \left (b \log \left (c x^{n}\right ) + a\right )^{3}}{x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 35, normalized size = 0.83 \[ \frac {\left (2+\cos ^{2}\left (a +b \ln \left (c \,x^{n}\right )\right )\right ) \sin \left (a +b \ln \left (c \,x^{n}\right )\right )}{3 n b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.37, size = 232, normalized size = 5.52 \[ \frac {{\left (\cos \left (3 \, b \log \relax (c)\right ) \sin \left (6 \, b \log \relax (c)\right ) - \cos \left (6 \, b \log \relax (c)\right ) \sin \left (3 \, b \log \relax (c)\right ) + \sin \left (3 \, b \log \relax (c)\right )\right )} \cos \left (3 \, b \log \left (x^{n}\right ) + 3 \, a\right ) + 9 \, {\left (\cos \left (3 \, b \log \relax (c)\right ) \sin \left (4 \, b \log \relax (c)\right ) - \cos \left (4 \, b \log \relax (c)\right ) \sin \left (3 \, b \log \relax (c)\right ) + \cos \left (2 \, b \log \relax (c)\right ) \sin \left (3 \, b \log \relax (c)\right ) - \cos \left (3 \, b \log \relax (c)\right ) \sin \left (2 \, b \log \relax (c)\right )\right )} \cos \left (b \log \left (x^{n}\right ) + a\right ) + {\left (\cos \left (6 \, b \log \relax (c)\right ) \cos \left (3 \, b \log \relax (c)\right ) + \sin \left (6 \, b \log \relax (c)\right ) \sin \left (3 \, b \log \relax (c)\right ) + \cos \left (3 \, b \log \relax (c)\right )\right )} \sin \left (3 \, b \log \left (x^{n}\right ) + 3 \, a\right ) + 9 \, {\left (\cos \left (4 \, b \log \relax (c)\right ) \cos \left (3 \, b \log \relax (c)\right ) + \cos \left (3 \, b \log \relax (c)\right ) \cos \left (2 \, b \log \relax (c)\right ) + \sin \left (4 \, b \log \relax (c)\right ) \sin \left (3 \, b \log \relax (c)\right ) + \sin \left (3 \, b \log \relax (c)\right ) \sin \left (2 \, b \log \relax (c)\right )\right )} \sin \left (b \log \left (x^{n}\right ) + a\right )}{24 \, b n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.35, size = 37, normalized size = 0.88 \[ \frac {3\,\sin \left (a+b\,\ln \left (c\,x^n\right )\right )-{\sin \left (a+b\,\ln \left (c\,x^n\right )\right )}^3}{3\,b\,n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 10.75, size = 82, normalized size = 1.95 \[ \begin {cases} \log {\relax (x )} \cos ^{3}{\relax (a )} & \text {for}\: b = 0 \wedge \left (b = 0 \vee n = 0\right ) \\\log {\relax (x )} \cos ^{3}{\left (a + b \log {\relax (c )} \right )} & \text {for}\: n = 0 \\\frac {2 \sin ^{3}{\left (a + b n \log {\relax (x )} + b \log {\relax (c )} \right )}}{3 b n} + \frac {\sin {\left (a + b n \log {\relax (x )} + b \log {\relax (c )} \right )} \cos ^{2}{\left (a + b n \log {\relax (x )} + b \log {\relax (c )} \right )}}{b n} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________